import { TestCases } from "./testCases";
import { url } from "@kit.ArkTS";

export const aws_region:TestCases = {
  "testCases": [
    {
      "documentation": "basic region templating",
      "params": {
        "Region": "us-east-1"
      },
      "expect": {
        "endpoint": {
          "properties": {
            "authSchemes": [
              {
                "name": "sigv4",
                "signingName": "serviceName",
                "signingRegion": "us-east-1",
                "properties":undefined
              }
            ]
          },
          "url": url.URL.parseURL("https://us-east-1.amazonaws.com")
        }
      }
    },
    {
      "documentation": "test case where region is unset",
      "params": {},
      "expect": {
        "error": "Region must be set to resolve a valid endpoint"
      }
    }
  ],
  "version": "1.4"
}
